package com.studentsys.service;

import com.studentsys.bean.Admin;
import com.studentsys.dao.RegistDao;

public class RegistService {
    private RegistDao rd = new RegistDao();
    public int regist(String username,String password){
        return rd.regist(username,password);

    }

    public boolean checkUser(String username) {
        Admin admin = rd.checkUser(username);
        if (admin!=null){
            return true;
        }else{
            return false;
        }
    }
}
